package jax.io;

/**
 * ...
 * @author tom
 */
class JReader implements JCloseable {
	public var _native:haxe.io.Input;
	public function new (ntv:haxe.io.Input) {
		_native = ntv;
	}		
	public function close() {
		_native.close();
	}
	public function read(?f:Dynamic, ?s:Dynamic, ?t:Dynamic):Int {
		if(f == null)
			return _native.readByte();
		else
			return _native.readByte();
	}
}
